import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

public class CallableStarter
{
	public static void main(String[] args)
	{
		new CallableStarter();
	}
	
	public CallableStarter()
	{
		ZaehlerCallable zaehlerCallable = new ZaehlerCallable();
		
		ExecutorService executor = Executors.newSingleThreadExecutor();
		
		Future<Integer> ret = executor.submit(zaehlerCallable);
		
		try
		{
			System.out.println(ret.get());
		} catch (Exception e)
		{
			e.printStackTrace();
		}
	}
}
